#KERNELDIR	=	/lib/modules/3.5.0-17-generic/build
KERNELDIR = /home/linux/course/ARM/linux-3.14-fs4412
PWD		= $(shell pwd)

obj-m	+= pwm.o

all:
	$(MAKE)  -C $(KERNELDIR)  M=$(PWD) modules
	arm-none-linux-gnueabi-gcc pwm_music.c -o pwm_app
install:
	sudo cp pwm_app *.ko  /source/rootfs/home
clean:
	$(MAKE)  -C $(KERNELDIR)  M=$(PWD)  clean
	rm pwm_app

